Closed Bug 1861620 Opened 2 years ago Closed 2 years ago

CTTestUtils.cpp: do not use 'else' after 'return'

Categories

(Core :: Security, task)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: Sylvestre, Assigned: knowlden887, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++])

Attachments

(1 file)

Filling as a good first bug to learn workflows.

do not use 'else' after 'return':
https://searchfox.org/mozilla-central/source/security/ct/tests/gtest/CTTestUtils.cpp#468-478

As the change is trivial, it is just to learn how to contribute to Firefox.

Found by http://clang.llvm.org/extra/clang-tidy/checks/readability-else-after-return.html

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Assignee: nobody → knowlden887
Status: NEW → ASSIGNED
Attachment #9360716 - Attachment description: Bug 1861620 - Clang fixes in CTTestUtils. r=Sylvestre! → Bug 1861620 - CTTestUtils: simplify the code by removing some unnecessary else r=Sylvestre!
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9741054af0ff CTTestUtils: simplify the code by removing some unnecessary else r=sylvestre DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: